<%--
  Created by IntelliJ IDEA.
  User: zhangshengjia
  Date: 2023/4/8
  Time: 16:02
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>用户页面</title>
</head>
<body>
<h1>欢迎您来选购商品</h1>
<table border="1">
    <tr>
        <th>商品名</th>
    </tr>
    <c:forEach var="commodity" items="${sessionScope.commodities}">
        <tr>
            <td><a href="/user/list.jsp">${commodity.name}</a></td>
        </tr>
    </c:forEach>
</table>
</body>
</html>
